﻿@using Nop.Web.Models.Catalog;
@model List<ProductOverviewModel>
<div>
    @if (Model != null)
    {
        if (Model.Count > 2)
        {
            for (int i = 0; i < 2; i++)
            {
                var manufacturerName = "没有商家";
        <div class="main_pc_left">
            <ul>
                <li>
                    <img src="@Model[i].DefaultPictureModel.ImageUrl" width="235" height="149" />
                </li>
                <li><span></span></li>
                <li class="font01">连锁快餐</li>
                <li class="font02">
                    @if (Model[i].Manufacturer != null)
                    {
                        manufacturerName = Model[i].Manufacturer.Name;
                    }
                    @manufacturerName
                </li>
                <li>@Model[i].SeName</li>
                <li class="font03">￥：@Model[i].ProductPrice.Price</li>
                <li class="welcome font04">欢迎订购&rarr;</li>
            </ul>
        </div>
            }
            for (int i = 2; i < Model.Count; i++)
            {
                var manufacturerName = "没有商家";
        <div class="main_pc_right">
            <ul>
                <li class="font01">连锁快餐</li>
                <li class="font02">
                @if (Model[i].Manufacturer != null)
                    {
                        manufacturerName = Model[i].Manufacturer.Name;
                    }
                    @manufacturerName
                </li>
                <li>@Model[i].SeName</li>
                <li class="font04">￥：@Model[i].ProductPrice.Price</li>
                <li class="welcome font04">欢迎订购&rarr;</li>
            </ul>
        </div>
            }
        }
        else
        {
            foreach (var item in Model)
            {
                var manufacturerName = "没有商家";
        <div class="main_pc_left">
            <ul>
                <li>
                    <img src="@item.DefaultPictureModel.ImageUrl" width="235" height="149" />
                </li>
                <li><span></span></li>
                <li class="font01">连锁快餐</li>
                <li class="font02">
                @if (item.Manufacturer != null)
                {
                    manufacturerName = item.Manufacturer.Name;
                }
                 @manufacturerName
                </li>
                <li>@item.SeName</li>
                <li class="font03">￥：@item.ProductPrice.Price</li>
                <li class="welcome font04">欢迎订购&rarr;</li>
            </ul>
        </div>
            }
        }
    }
</div>
